package com.fr.base.core.antlr.preprocessor;

class Option
{
  protected String name;
  protected String rhs;
  protected Grammar enclosingGrammar;

  public Option(String paramString1, String paramString2, Grammar paramGrammar)
  {
    this.name = paramString1;
    this.rhs = paramString2;
    setEnclosingGrammar(paramGrammar);
  }

  public Grammar getEnclosingGrammar()
  {
    return this.enclosingGrammar;
  }

  public String getName()
  {
    return this.name;
  }

  public String getRHS()
  {
    return this.rhs;
  }

  public void setEnclosingGrammar(Grammar paramGrammar)
  {
    this.enclosingGrammar = paramGrammar;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public void setRHS(String paramString)
  {
    this.rhs = paramString;
  }

  public String toString()
  {
    return "\t" + this.name + "=" + this.rhs;
  }
}